/* 
 * File:   imageio.h
 * Author: gustavo
 *
 * Created on May 24, 2011, 4:22 PM
 */

#ifndef IMAGEIO_H
#define	IMAGEIO_H

#include <util/types.h>
#include "../image.h"
#include "../../matrix/matrix.h"

#ifdef	__cplusplus
extern "C" {
#endif

	void imp_image_save_matrix_as_image(ImpMatrix * M, boolean normalize, char * fname);

	int imp_image_save_pgm(ImpImage * img, char * fname);
	ImpImage * imp_image_read_pgm(char * fname);

	int imp_image_save_ppm(ImpImage * img, char * fname);
	ImpImage * imp_image_read_ppm(char * fname);

	int imp_image_save_bmp(ImpImage * img, char * fname);
	ImpImage * imp_image_read_bmp(char * fname);



#ifdef	__cplusplus
}
#endif

#endif	/* IMAGEIO_H */

